{% extends "admin/base.html" %}

{% block main %}
    <form action="" method="post">
        <div class="box box-primary">
            <div class="box-header with-border"><h3 class="box-title">基本设置</h3></div>
            <div class="box-body">
                <div class="form-group">
                    <label>OJ名称</label>
                    <input type="text" class="form-control"  placeholder="OJ名称" name="oj_name" value="{{ private.oj_name }}">
                </div>
                <div class="form-group">
                    <label>OJ缩写名称</label>
                    <input type="text" class="form-control"  placeholder="OJ缩写名称" name="oj_name_abb" value="{{ private.oj_name_abb }}">
                </div>
            </div>
        </div>
        <div class="box box-primary">
            <div class="box-header with-border"><h3 class="box-title">管理后台密码修改(原密码为空则不修改)</h3></div>
            <div class="box-body">
                {% if private.password_message %}
                    <div class="callout callout-danger">
                        <p>{{ private.password_message }}</p>
                    </div>
                {% endif %}
                <div class="form-group">
                    <label>原密码</label>
                    <input type="password" class="form-control"  placeholder="原密码" name="password_old">
                </div>
                <div class="form-group">
                    <label>新密码</label>
                    <input type="password" class="form-control"  placeholder="新密码" name="password_new">
                </div>
                <div class="form-group">
                    <label>重复密码</label>
                    <input type="password" class="form-control"  placeholder="重复密码" name="password_rep">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-4" style="float: left;">
                <button type="submit" class="btn btn-primary btn-block btn-flat">提交</button>
            </div>
        </div>
    </form>
{% endblock %}